//
//  DYFriendTrendsViewController.m
//  BaiSi
//
//  Created by mac on 16/10/14.
//  Copyright © 2016年 DeYi. All rights reserved.
//

#import "DYFriendTrendsViewController.h"
#import "DYRegistLoginViewController.h"
#import "DYRecommendConcernViewController.h"

@interface DYFriendTrendsViewController ()

@end

@implementation DYFriendTrendsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //设置导航栏按钮
    [self setUpNavigationItemButton];
}

#pragma mark 设置导航栏按钮
- (void)setUpNavigationItemButton {
    //左边
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"friendsRecommentIcon"] highImage:[UIImage imageNamed:@"friendsRecommentIcon-click"] target:self action:@selector(focus)];
    
    //中间
    self.navigationItem.title = @"我的关注";
    
//    //设置字体颜色,大小
//    NSMutableDictionary *attr = [NSMutableDictionary dictionary];
//    attr[NSForegroundColorAttributeName] = [UIColor randomColor];
//    attr[NSFontAttributeName] = [UIFont systemFontOfSize:20];
//    self.navigationController.navigationBar.titleTextAttributes = attr;
    
}

#pragma mark - 点击事件
-(void)focus {
    LHLog(@"点击关注");
    DYRecommendConcernViewController *vc = [[DYRecommendConcernViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)registerButtonClick {
    
    LHLog(@"点击登录注册");
    DYRegistLoginViewController *vc = [[DYRegistLoginViewController alloc] init];
    [self presentViewController:vc animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
